
	function reloadCategoryTree()
	{
	    if (document.images)
	        parent.frames['categorytree'].location.reload();
	    else
	        parent.frames['categorytree'].location.href = parent.frames['categorytree'].location.href;
		//parent.categorytree.location = parent.categorytree.location.href;
	}

	function updateList(form)
	{
		if (form.mainCategoryId == undefined)
			return;
		form.mainCategoryId.options.length = 0;
		var current = 0;
		for (i = 0; i < form.categoryIds.length; i++)
		{
			if (form.categoryIds[i].checked)
			{
				form.mainCategoryId.options[current] = new Option(
					categoryList[form.categoryIds[i].value],
					form.categoryIds[i].value
				);
				current++;
			}
		}
	}
	
	function updateActionName(input, name)
	{
		input.form.actionName.value = name;
	}
